// 工具函数

function parseTime(second) {
    // 87 01:27
    let m = parseInt(second / 60) + "";
    let s = parseInt(second % 60) + "";

    return `${m.padStart(2, "0")}:${s.padStart(2, "0")}`;
}
function getPercentage(video) {
    return video.currentTime / video.duration;
}
function getCurrentTime(video, per) {
    return video.duration * per;
}